package Main;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import Component.MyForm;
import Component.MyLabel;
import Component.MyPanel;
import Component.MyTextButton;
import Global.ResourceManager;
import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

/**
 *
 * @author Huy
 */
public class GameAboutSate extends GameState {

	private Color panelColor;
	MyPanel mainPanel;

	public GameAboutSate(Game _game) {
		super(_game);
		form = new MyForm(ResourceManager.getImage("menu/background"), game.getWidth(), game.getHeight());
		panelColor = new Color(0xcc220066, true);
		mainPanel = new MyPanel(600, 400, panelColor, 100, 100);
		MyLabel text = new MyLabel("Thông Tin Nhóm", 250, 30);
		text.setForeColor(Color.WHITE);
		MyLabel sv1 = new MyLabel("Mai Vũ Duy - 0912063 - alvisstar1991@gmail.com", 50, 130);
		sv1.setForeColor(Color.WHITE);
		MyLabel sv2 = new MyLabel("Đỗ Bá Huy  - 0912172 - sacgay144@gmail.com", 50, 90);
		sv2.setForeColor(Color.WHITE);
		MyTextButton back = new MyTextButton("Back", 450, 350);
		mainPanel.add(text);
		mainPanel.add(sv1);
		mainPanel.add(sv2);
		mainPanel.add(back);

		form.add(mainPanel);
		back.setMouseAdapter(new MouseAdapter() {

			@Override
			public void mouseReleased(MouseEvent e) {
				game.gameState = new GameMenuState(game);
			}
		});
	}
}
